<?php
/**
 * test case for WakTool class
 * @author J.Ducastel <jeremie@ducastel.name>
 */
class testWakTool extends UnitTestCase {

	function setUp() {
		$this->kit='webappkit/tests';
		$this->name='core';
		$this->cfg=array(
			'key'=>'value');
	}

	function testFactory() {
		$kit_id='webappkit.testkit';
		$cfg=array(
			'key'=>'value');
		$tool=WakTool::Factory($kit_id,$cfg);
		$this->assertIsA($tool,'wakTool');
		$this->assertEqual($tool->getKitId(),$kit_id);
		$this->assertEqual($tool->getCfg(),$cfg);
	}
}

class MockupWakTool {

	var $cfg=array(
		'key'=>'default'
		,'oneToFour'=>array(1,2,3,4));
}
?>
